Are you making a Homemade Mix or is this a ready made mix?
If it's the latter, then it's fine as long as your hamsters doesn't have Diabetes.
If it's the former they are okay but make sure they aren't Salted peanuts and that the corn is Field Corn and not Sweetcorn