Shazam Mac osx app is quite powerful. It doesn't only listen to your mic so it will detect the song even when the sound is off.
Also it often detects a song playing in somebody's else headphones at our office.
Kinda creepy sometimes.
I don't really know. It's hard to test since I have only headphones with mics.