the end result may be what your after, but i believe it works differently.
usb isn't what you are after, the IR port like crash suggested is your target.
the names of the programs and the name of the popular remote escape me now, but something like that can be done if I recall. You may have some luck surfing over to a HTPC forum and asking there. Google may be even easier then that though.