Q: Does this device has an inbuilt microphone detection feature?
A: No. To detect a microphone you will have to use a GPIO.
Note: This question comes from typical usage of a handsfree kit. The mute/answer button on the handsfree is used to answer an incoming call or to mute the microphone.