Which Applications are accessing the microphone in OS X?
Oversight is an app that can notify when apps begin using microphone or webcam privileges. I don't know how it's implemented under the hood, though.