Canada bans most foreigners from buying homes
I doubt this will have that much of an impact on preventing it. Foreign investors will set up shell companies, get local realtors to help/hold title, etc. It's a cat and mouse game, and the government is rarely the cat.