If there's a hardware switch, where's the problem ?
It's not difficult to create a hardware notification of mic activity. If the mic is on, then it is using current. Detect the use of current, and light up the LED.
No software can go against that.
If you have a hardware switch, well that prevents the mic from getting current. No software can counter that either.
But of course, this needs to be implemented in hardware.