The Court will ultimately decide who gets possession of the house, but it does not matter if it is listed in your name, his name, or both names. You have many issues to deal with, and once you're sure that the divorce is going to happen, the sooner you consult an attorney the better.
These are complex issues, and it is important that they be handled correctly. Therefore, it is important that you consult an experienced family law attorney to find out what options are available to you based on the facts of your particular case.
If you need more information, you can visit my family law blog (www.SCFamilyLaw.com) or our website (www.StevensFirm.com). I wish you the best of luck.
Ben Stevens