Show SIP Peers

Where is the information used to form the output from “show sip peers” or Reports–>Asterisk Info–>Peers?

Is this in a file or in the MySQL DB?

Neither, that comes from both the asterisk internally used database, berkley or sqlite depending on Asterisk Version and the dynamic state of asterisk at the time it was derived.