Short answer
Yes, hot chocolate is dangerous and requires immediate action for any dog, especially a pregnant one. The chocolate contains theobromine and caffeine, which are toxic and can cross the placenta, affecting the developing puppies. A pregnant dog's system is already under strain, making her potentially more vulnerable. This is an urgent situation; call your vet or the ASPCA Animal Poison Control Center at 888-426-4435 right away for guidance based on how much she drank.
Hot chocolate — Food safety facts
Do not feed · Dogs · full breakdown on the linked food page
Chocolate plus sugar plus milk — the chocolate is the emergency part.
The full verdict, portion guidance and serving notes are collected on the Hot chocolate food facts page.