DK is this a question. The start of a discussion. Maybe an errant post. I'm not sure of what you are looking for. I speculate you like some training or event on Pi4B power detection?
If you are getting under voltage detected message, means you are not supplying enough power to the Pi. Use a better USB charger. Better to use the official RPi charger.