Welcome.
Yup, seeing a lawyer is the first step. Find out if there is any chance of you getting primary custody. It's no longer true that the mother automatically gets primary custody but it can be a fight.
As someone who grew up in an alcoholic household, getting your children out would be a wonderful gift to them.