Sorry to read your so familiar story. You have found a great place for support.
This is all about you and your personal growth. We grow during the difficult periods of our lives. Take all your focus off of your wife and put it on you and your children.
Start by understand what is attractive to woman. Then become attractive. Start here: