This is matrimonial property and as such is jointly owned by both of you, regardless of who's name is XXXXX XXXXX title deeds or mortgage.
In a divorce, it depends on a number of factors as to whether the property is sold immediately or not. If there are children under 16, for example, then the courts are unlikely to impose an order for division and sale (as it's called) They would also look to the situation of both parties. Who earns what and what other assets there are.
In Scotland the courts always try to ensure economic equitability. So they will not want to see one of you walk away with more than the other.
This is only a Q&A site, but there is a website that can help you through the whole process for an agreed fixed fee.
Go to http://www.myscottishdivorce.co.uk/
Hope this helps.
DISCLAIMER: Answers from Experts on JustAnswer are not substitutes for the advice of an attorney. JustAnswer is a public forum and questions and responses are not private or confidential or protected by the attorney-client privilege. The Expert above is not your attorney, and the response above is not legal advice. You should not read this response to propose specific action or address specific circumstances, but only to give you a sense of general principles of law that might affect the situation you describe. Application of these general principles to particular circumstances must be done by a lawyer who has spoken with you in confidence, learned all relevant information, and explored various options. Before acting on these general principles, you should hire a lawyer licensed to practice law in the jurisdiction to which your question pertains.
The responses above are from individual Experts, not JustAnswer. The site and services are provided “as is”. To view the verified credential of an Expert, click on the “Verified” symbol in the Expert’s profile. This site is not for emergency questions which should be directed immediately by telephone or in-person to qualified professionals. Please carefully read the Terms of Service (last updated February 8, 2012).