This is something that I suspect will get easier in the next couple years as AI research progresses. I could imagine some sort of reversal tool being made such that "given this output and these weights files, how likely is it that these weights produced this output with a reasonable input?"
I don't know, that might be incredibly difficult forever, or it might be something that someone has a breakthrough in and manages to do.
Perhaps it's only useful for particularly egregious examples, and wouldn't be able to detect an AI text that was subsequently edited. That would be fine. When I was a TA in college, we ran students' papers through a plagiarism detector, which would spit out some % number based on what it thought was the amount/likelihood of plagiarism. The number itself was bunk, but across a class of 30 people, if one or two papers had much higher numbers than the other 28, I could click and look at it's justification. Sometimes it was a meaningless false positive, other times it was "here are the paragraphs that were copied verbatim from Wikipedia".