Potentiometers are commonly only rated at 1/8 to 1/4w and not suitable.
Anyhow, many computer fans require a pwm signal or similar to run.
Should be heaps of info out on the web, try a google search for the make , model, type, number of wires that you have.