This is totally model dependant, if you have an IBM it does one thing, a Compaq does something else. Nothing software wise which will help you.
There are voltages inside the computer if it has an ATX power supply which you could connect to, a couple of simple options might work,
Connect a plug in 12 volt DC power supply to the fans and run a cable out of the case. Remember to disconnect the original cables as something will go bang if the computer and power supply is on at the same time.
If you want to be a little smart about it, and reduce the noise of the fans running while the computer is off you could do this
6 volt DC external power supply
2 diodes (IN4001 will work) penny’s each (or around here cents)
For each fan
Connect the negative of the 6v power supply to the black of the fan(s)
Cut the red wire a few inches from the fan, insert a diode with the stripe towards the fan, and reconnect. (Now when ever your computer is on the fan will run)
Connect a second diode striped end to the striped end of the first diode,
The 6v plus from the power supply to the back of the second diode,
Repeat this each time for the fans you want to run, when you turn the computer off the fans will slowdown & run from the 6 volt supply, leave the 6 volt power supply on all the time.
Note some fans can be as much as 350 ma so don’t expect to drive fans of something the size of a cigarette lighter, also cheap power supply’s will produce up to 17 volts even though the case says 6
Have fun