It might sound crazy but why not run a lead from the speaker socket to a tape recorder or another PC or loop it to the mic.
If you wana hear it at the same time you could use a Y splitter or the line out to an amp.
I guess your real question might be how to combine .wav .mp3 samples if you want it all pure digital. Like a tracker / sequencer works.