Depends on whether you mean brute-force shut off the power supply, or issue a command to the OS to shut down gracefully.
The brute force method can be done by setting up the "ATX Power Switch" using command 28.
The gracefull method would require a program running in the background that receives the button press reports, and then issues the OS shut down command.