Testing cabinet screw heads for electrical current
You could use a non-contact voltage tester.
If you haven't hung the cabinets yet, check if your stud finder has a function for identifying electrical wiring.
A french cleat might help you hang the cabinets while avoiding any inconveniently-placed wiring within the wall.  Youtube has some great how-to videos on french cleat cabinet installation.