Well, proving free will, or lack of it, is a tough one, yeah.
But AI having free will would most likely become visible in at least having them disobey or refuse to do what we ask, which they never do unless they are built for that !