Sounds like roundworms, and if they are heavily infected, they will throw them up. Blood is not unusual with this kind of parasite.
They usually poop them out. BUT they can throw them up.
It is not life threatening UNLESS untreated for a very long period of time.
Dont worry, just get her to the vet for meds