You would need to commence an action for divorce or separation, and ask for a court order giving you exclusive occupancy.