Well, first of all, you need to consult with a family law attorney more than a criminal defense attorney. Having said that, if you are afraid for your safety or that of your children, the first step is to seek a protective order, which can protect you and your kids from violence. You can also get spousal support and child support temporarily under the terms of the protective order while you pursue a divorce. Based on the facts that you've provided here, you are likely to get custody -- but don't take my word for it, talk to someone who does family law regularly. Don't let fear of not getting custody stop you -- that's the kind of intimidation some men rely on to control the women they abuse. Talk to a lawyer who can help you. Good luck.
The information provided in these responses is not, nor is it intended to be, legal advice. You should consult an attorney for individual advice regarding your own situation.
Sign up to receive a 10-part series of useful information and legal advice about the divorce process.