There are applications that can do this. One that I know of is Virtual Audio Cable
. I've used it and it works well, but it cost's $30.
A free alternative may be the LineIn Plugin
for WinAmp, though I've never tried it.
Please note that using such applications for copyright infringement is a violation of the Digital Millennium Copyright Act (in the USA) and/or equivalent national laws outside the USA.