It should be possible to connect the mouse optics but you might need to do some reverse engineering to work out the connections for the LED emitters (which are usually wired with both in series and also a resistor in series) and the detectors. The detectors must either be open circuit or pull to ground depending on light or no light.
Using a mest meter with the mouse working is a good start.
Andy