Very good!
Some people recover quickly from miscarriage, and some are very distressed. Unless you've experienced it yourself, being sorry and offering a meal is about all that's expected.
There are support groups for parents who are having trouble coping with a miscarriage. If your friends have this issue, they can ask at their doctor's office, church, or local health department.
Thank You!