There's an app for that. "Shazam!" is software found in apple's app store that can identify a song after it's hear a clip of it. Also TuneUp can but it's very shi tty
A common way is to search for the lyrics in a web search engine such as Google or Yahoo. To do this you must know at least some of the words to the song and enter a search string similar to: lyrics...