AudioHijack will do the trick, but the full version costs money. Also, you should make sure you have the copyright holder's permission before you record any of their stuff.
It's possible with a BeoSound 4 too, record N.Music onto the A.Mem card, and transfer the recorded files across onto your computer.