You can use the open source audio application called Audacity. It uses the signals from your video card to generate a WAV output file of any sound coming from your computer.
for the application. It can take some trial and error to discover which source needs to be used to input, but it works very well. As an example of how to do this search google for "youtube audacity" as it produces a number sites with instructions.