Do Internal Layers of LLMs Reveal Patterns for Jailbreak Detection?