If you have a Creative Sound card, you can do this fairly easily. Set the Recording source to Line in, or "What u hear" if you need it... and then open up the Creative Media Player. On the record button, click the arrow and choose both "Recording source" and "Recording format", and change the latter to MP3.
Hope that helps.