There isn't really a way of doing that. One thing you could try though is adjusting the eq to possibly take out some sounds you don't want. There may be another method that could help slightly but other than that, there's no software that can just take out sounds, you would need everything in different tracks.
If you're looking for instrumentals or just the vocals for a song though, you could try a p2p program and just search for ________ accapella or instrumental. That works for most popular songs.