Why would you want to do that though? If you are thinking to extend battery life I doubt very much this will make much (if any) difference compared to leaving it to trickle charge. UPS's are designed for 24/7 continuous use.
However to answer your question, you probably could use this to issue a command to your PC to shutdown a UPS using the APC drivers.