I think I could do it with a graphing calculator, but not with one of like the 10 function calculators. You need to be able to program it.
Typically TV remotes work on about a 38KHZ IR square wave. So you'd have to generate that on the calculator.
I think it can be done, but it's more of a software project than anything.