Probably the same way they banned graphing calculators, at least for in-person tests. The professor walks around and if they see you on the phone, they force you to put it away, presumably.
Other than that, I don't know. Probably use some software to detect A.I.-generated text like they already have for detecting plagiarism.