APC has PowerChute-business edition software that does logging.
Just have to be careful what UPS you buy. The heavy business units are the ones that have the hardware to do the job.
They're kind of expensive new, but you can scrape used ones, refurbished, blems, from cdw.com that won't kill you on
You need their proprietary serial cable to get the UPS to connect to a PC.