<human>: I am looking for info on what my rights are and the steps I need to take to get my son into my custody. 

We have a son together that's 3 years old. The mother has a history of drug use. There was already a CPS case opened under just her name when my son was born due to drugs being in her system and therefore my sons as well. We are married but no longer living together. My son lives with me due to her basically couch surfing with whoever will take her in. I have just found that she is using again and have denied her from taking him. She has threatened to bring cops to remove him from my home. 

I would like to know what I can do first to prevent her from taking  my son and then to fully get custody of my son. I know law enforcement officers and everyone in general usually sides with the mother so I'm stressing about this happening now before I get to throw out her drug issues and other issues that I feel woukd strongly favor him staying with me.

Give me a shortened version of the text
<bot>: junkie separated wife threatening to take son from home. Need info on my rights and what to do to keep him here