This was wise of you to ask for advice.
I would not give them to your friend. I can tell you from experience that a very well-meant gesture like this would not be welcome. In the situation your friend is experiencing, she is likely going to feel in shock, and there's no way this will feel good for her. Perhaps you would feel good donating them to a women's shelter or another charitable agency, but I wouldn't tell her about it. She is going to have a huge loss to grieve, and your using some loving discretion right now is going to be her best ally.
I would encourage you to grieve your own sense of loss-- if this is what you are feeling-- in some healthy ways. Some of us want so much for our friends, and we know how much having this baby meant for them. If you are feeling sad about this, perhaps you can write it down somewhere, those wishes for your friends, and burn them if need be to release them. I've been in this place too,grieving the losses my friends have suffered. It's good to say "I'm so sorry. Let me know what you need." and to give space for a while, even a month or so.
You sound like a caring friend. Understand, too, if you don't hear from her for a while. Drop her a condolence card, though. Those are always appreciated.
H.