Dunno, really. Does it have an IR port than can
transmit?
That would be the hardware block, if it doesn't. Would then need to find an add-on IR transmitter for the laptop, in that case.
As for the software, I'm sure if it's possible someone has written some code somewhere. Try googling.
Cheers
Mick