That's a step away from showing ID. It's not okay because your local (government owned) library does it. Even wirhout much info, it still becomes easier to dox if you have the person's location.
It would also be insanely complicated. How many libraries would need to be contacted and taught how to use some kind of software for this. It would be a mess.