The best way to stop this is by getting him fixed, if you choose not to do that it is just a natural thing male and female cats seem to do especially during the spring, which is their heat season
Once it hits a certain point you will feel little bumps which feel slightly like tiny potatoes. Be careful when you feel for them because it could harm the babies, and you hamster may become nippy and bite at your fingers or anything that gets close to her.