Once you become a permanent resident.
Your spouse will have to sponsor you as a permanent resident (just being married gives you no status). Once your application has been successfully processed and you have landed in Canada and become a PR - you can then study at domestic rates.
The spousal sponsorship process can take anywhere from a few months to a few years.