Not technically possible.
I use Stable Diffusion to generate images, and that will put information in EXIF tags in the image. However:
-
Your browser would have to download the images -- not thumbnails -- from the image search engine. In theory, I guess image search engines could provide a way to exclude ones that are explicitly flagging themselves in that way, but it'd be slow for your browser to do it.
-
There is no guarantee that all AI image generation software will do the same.
-
If anyone has modified it, made a derived image in Photoshop or GIMP or whatever, it won't have the EXIF data.
I doubt that there will ever be a reliable way to detect AI-generated images just from the image data. You could make something that works for some generators today, but they'll be heavily tied to the model and generator, and they'll break down as things change...and it's a fast-moving field.
In the long run, it might be a better shot to try to identify images that are not AI-generated than those that are. Like, have cameras cryptographically sign the images they take or something, because it can be useful to show that an image is actually a legit photograph. But that'll restrict what you're finding, exclude images that one might want to keep.
For a solution that will become increasingly-less-viable, one might be able to cobble together something with Tineye. It can look for similar images, and images that existed prior to widespread use of generative AI probably weren't generated with it. But over time, more and more of the images out there will have been done after the rise of generative AI.