Is it possible to check windows patch level?

Hi there,

Is it possible to check a remote machine’s exact patch level and make sure it has the LATEST windows security patches before allowing them to authenticate and access the network?

many thanks

to answer my own question

yes it is