Controlling PWM fans with arduino and mains power

MOSFETs can be used for power on/off and also for PWM signals controlling current to the fans - some fans have drivers built in, so PWM goes on a third wire to the fan. Check the spec sheet of your particular fans on how yours work, and what voltage level is needed on the control wire if you have one.