Harnessing Chain-of-Thought Metadata for Task Routing and Adversarial Prompt Detection