I haven’t done this before, but I see that NUT can run an SNMP server and present itself as a UPS, basically passing through the info from USB to SNMP. I’d probably go that way, then configure the Synology to query SNMP and shut itself down automatically.