You can try with programs, Speed Fan is one example. However many of the programs don't work on all laptops. So you will have to try and see if it works on yours.
I have to say though, if you are having fan or overheating issues, you really need to look at the cause and fixing that rather than trying to control the fan speed.