How to detect CTCSS?
Traditionally, it was done with a PLL-based tone detector IC along with some analog support components.

Nowadays, it could be done with a little bit of DSP firmware running on pretty much any microcontroller.