In Thailand, there is no prohibition on nationality, and any foreigner legally admitted to entering Thai territory can purchase a condominium which is generally a freehold property. But unfortunately, foreigners are not allowed to buy land that being said if you can't buy land then you can't buy a house.
Live your best life in Thailand. Get help with Visas, accomodation, itineraties, retirement, dating and anything else in Thailand.