Open Audacity, and make sure the recording device is set to ... then start up whatever audio you want to be recorded from your computer.
Audacity may be free, but it packs plenty of features, we take a look at why it's still a great audio editor today.