How to identify if a Windows PC requires a restart?

Hi,

I am using Elastic agent 7.17.4 to monitor the windows machines.

Is there any OOB feature to identify if a Windows machine requires a restart after a patch/software update?