Dectect batery status on windows for smarthings

Hello everyone. I want to be able to execute a routine/activate a device in smartthings before the battery event of my laptop (dell). Is there a way to achieve this automation?