Instead of rewiring the remote control, you can replicate the remote's RF signals using a transmitter that uses the same frequency as your sockets (these particular units use 433.94 MHz). This will depend on the particular sockets and sometimes your location – some countries prohibit the use of certain frequencies – as you may require certification before making your own transmissions:
The signals sent by the RF remote control can be recreated using 433Utils created by http://ninjablocks.com. The 433Utils uses WiringPi and is written in C++, allowing ...