What operating system and sound driver are you using? Most modern ones allow you to mute other running applications, if not, you'll just have to not run noisy applications while recording. To record your sound card’s output directly instead of using a microphone (or the slightly more sensible alternative of plugging the sound card's Line Out into its own Line In), just select your sound card's Mixer/Monitor as your recording device.