can i use dc brushless fan as generator
No, you can't.

A brushless fan is not just a motor, but has the control electronics built-in, so you can power it from 12V DC instead of having to supply the three phases.

This control circuit is not designed to work as a generator and will not put out any voltage.