According to search results, hamsters cannot drink regular cow’s milk directly, primarily due to lactose intolerance. Here’s a detailed breakdown:

Lactose Intolerance Is the Core Reason
Sharp decline in lactase after weaning: Hamster pups wean around 21 days old, and their lactase production drops to just 10% of pre-weaning levels afterward. This makes them unable to effectively break down lactose in milk, leading to diarrhea, soft stools, or even dehydration.
Symptoms: After consuming milk, they may develop yellow-green feces, bloating, or lethargy. In severe cases, this can be life-threatening.
Alternative Options
Lactose-free dairy products: Lactose-free milk (like "lactose-free cow’s milk") or pet-specific goat milk powder (diluted as directed) can reduce the risk of diarrhea.
Nutrition supplement suggestions: Plain water is the safest choice. For extra nutrition, offer high-protein live food (such as mealworms) or fresh fruits and vegetables.
Emergency Handling
If a hamster accidentally drinks milk and develops diarrhea, stop feeding it immediately and monitor closely. Seek veterinary help if symptoms worsen. Avoid feeding lactose-containing human dairy products (like yogurt or cheese) in daily care.
Summary
Adult hamsters are strictly prohibited from consuming regular cow’s milk, and even young hamsters require caution. A scientific diet should focus on hamster pellets. Dairy products should be limited to lactose-free varieties, with strict control over frequency and portion size.