You should consider reading events from the Event log, or use powercfg / sleepstudy to generate an html file with events you can parse out.