I’m sure there are programs to do that (I wasn’t aware that Audacity could, but it doesn’t surprise me).
Something I haven’t tried, but it seems like it might work, is connecting a cable from the headphone-out-jack to the microphone-in jack. (Line-in?, line-out?, loopback?). Just be sure not to have your system set to playback the microphone sound out to your speakers, or I’d imagine you would get some really bad feedback really fast!