You could use an RS232 (serial) connection in series with a MOS amplifier (if necessary) to generate a signal to a switch (bipolar junction transistor?) that connects the fan leads to the motherboard. Then just write a program to send the signals over the RS232 port.
I realize that this might be a little bit too much work for you. But it's what I could think of off the top of my head.
