If you read my posting history you will notice that I am a big fan of LIRC, which will do exactly what you are looking for, but I don't know about the capabilities of the Windows port, WinLIRC:
http://winlirc.sourceforge.net/LIRC, supports RF as well as IR, so I would imagine that WinLIRC does, too...
J