If it is publicly accessible, then they can generally go there, too.
Yes, they can run your plates, your license, your name, or just about anything for most any reason they want - or even NO reason! So long as they are doing it for a legitimate and lawful purpose, it's perfectly lawful.
What...