I don't think I asked how to get the camera out of sleep mode? Press any button?
...or just use the same "button" again, like you'd do it on the camera, with the real button
The script could check for platform IDs which are known to have this feature ( get_buildinfo() ).
I assume somebody would first actually have to make a list of which cameras could do this.
You may search in the firmware dumps (or in the "Strings.txt" files) for the string which is used in the Canon GUI for this feature, it looks like the (localized) text is only included by Canon when the feature is available on the camera.
IMO all of 'our' cameras support at least english language, you may look for something like "set shortcut button"...