Hey Sweetie, I know that this is not what you expected your life to be. I am sure you are feeling a million different feelings. Take some time for you, to regroup and heal.
My prayer and wish for you is that you and he can coparent on friendly terms, that he gets the help he so desparately needs and becomes the father your children deserve, and that you find peace and happiness.