How can i find whether a microphone is connected or not in my system?

Thanks,
Poornima