If you are both on title to the house deed & mortgage, you will NOT lose your rights to the house even if you move out.
During the divorce proceedings, your real property (the house) and personal property (furniture, etc.) will be divided up at a judicial partition proceeding. You will likely be able to hold on to your personal belongings.
If he tries to change the locks or prevent you from entering your home, that is considered an "ouster", you are entitled to receive your share of the fair rental value of the property for the time you are wrongfully deprived of possession of your house.

