Then I would use one of the bottom right extension header pins to drive a transistor and configure the firmware (and gcode) accordingly.
sanguinololu-fan-hack
sanguinololu-fan-hack