Broken IR remote

I got a fan that was controlled by IR. The remote just broke, and now i am wondering if it is possible to use an arduino to somehow just try to get some of them again, so that i can program my logitech remote with them instead.