AFAIK, ability to implement this has not much to do with Python or other programming languages. It is basically a capability of laptop's hardware, and it might not exist at all. If it does exist then it needs to be exposed by manufacturer's drivers and you will probably need a bit of low-level OS-specific wizardry to actually call the driver API from Python, because there is no OS abstraction for that. Given that you have the documentation for the API, which may not be public...
It can be a nice project if you are interested in hacking and reverse engineering the internals of PC hardware, which is certainly fun :)