Will it work? Most likely yes, but as Solid Snake mentioned, it might screw up your serial ports. The -12V line has very little power available.
Why don't you just get a 12V version of the same fan? Voltage is irrelevant. What matters is POWER. All other things being equal, a 12V, 6W fan will have the same airflow as a 24V, 6W fan.