When you are divorcing, all assets are identified and valued in order to see what is to be divided, and that includes any property.
As soon as you recognise that the marriage has broken down, you can take steps to protect your interest in the property by registering a notice of home rights with the Land Registry. This means that your spouse cannot sell the property without your knowledge or consent, until the divorce is finalised.
Even if the property is not in your name, it remains the marital home and you have the right of occupation for as long as you are married. Equally, you could expect to receive a share of the proceeds if the house is sold. This may not be a 50:50 split, but it could be enough to help towards the costs of another home after your divorce.