you can check this registry key: HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\microphone
Under the NonPackaged key, all non-microsoft applications that have used the microphone are listed with path to the executable. If an application is currently using the mic, the LastUsedTimeStop value is set to 0. Cheers!