It does sound like your daughter is in crisis and really needs an intervention. I would suggest that you bring her to a local crisis center or emergency room for psychiatric assessment and to see if she requires inpatient treatment.
Once they do an evaluation of her, they will either determine that she requires hospitalization or that she does not meet criteria for hospitalization but may need outpatient care. If she requires hospitalization, she will be admitted for an evaluation period of 3-days in which the hospital mental health team will assess her needs as to further inpatient treatment or outpatient treatment. If they release her, they will help you set up outpatient treatment with a psychologist/psychiatrist and/or substance abuse specialist.
If, when you bring your daughter to the crisis center or emergency room, they determine that she does not meet criteria for hospitalization, I would strongly encourage you to ask the staff for outpatient referrals for a psychiatrist, psychologist AND a substance abuse counselor in your area. You might also be interested in finding a family therapist to help you all cope with the changes in your family relationships.
Unfortunately, given that she's 17 years old, I think that you are no longer able to file a CHINS (Child In Need of Services) order which would take care of all of this stuff for you through the juvenile court.