You need to research a newer UPS to see if that is a function the UPS software supplies.

I have that age of APC UPS and it works well. But there is not any way to get from the UPS a notification on my Windows 10 machine.

If I am not around to manage the Computer, the APC software will initiate an orderly shutdown.

So your UPS: No.  Newer UPS: Maybe - depends on the UPS.