Short answer is to carry out a title deeds search on the Registers of Scotland website, or the Land Registry website if it's in England or Wales. If the property's been sold in the past 20 or 30 years, it will probably be listed. If the last time it was sold is decades ago, chances are the records won't be digitised, so you'd have to spend time and probably money getting the registering body to carry out a paper search…