There is already one controlled fan output on the Duet 0.6 so I presume you mean you want to add a second one.

You would need to pick an unused heater pin on the expansion bus, connect an external MOSFET to it to drive the fan, and rebuild the firmware with a modified Pins_Duet.h file to allocate that pin to a fan instead of a heater.