Is there an alternative to Shazam, but for OS X?
An alternative is Tunatic. It has a handy little window with a sound visualizer:



Once it identifies the song, it displays the name and artist:

And takes you to a link where you can download it from iTunes or buy the ringtone version: