Hello, I am happy to answer your question.
I am sorry to hear about your situation.
You have a number of options here, and they are all quite different. I assume that you are not the legal guardian of her daughter. You can ask the court for an order of protection
for the daughter because you are worried about her safety. You may need to get her real father or another family member like her grandmother to file the paperwork in court. Then the daughter could be taken out of the home and placed with either the father or other family members.
You can also try to see if you can get guardianship
of the daughter and then move out with her. This is more complicated and would require the father to participate in the proceeding. Under the circumstances I can't imagine that the court would find that the child should stay with the mother. The problem is that the judge might not decide that she should go with you, she may end up with the father.
Either way, it does sound like it is in the best interest of the child
to leave the home with the mother, and that is the standard that the court will use.
I hope this helps, and please ask if you need clarification.