My HP came with Rhapsody,which is free. You get 25 free songs to play each month.but not download. There are many freeware programs around that will let you record them anyway. You will need to enable stereo mix in your recording devices(it's disabled by default) by right clicking the systray volume icon and selecting "Recording Devices" Then R-click on the window that opens and select "Show Disabled Devices" to enable it. This will allow you to record directly off of your soundcard.
The quality will depend on your card and the program you use to record with. I've used this LINK (not pretty but works ok) Audacity is also rated highly but I haven't tried it. 