When you see sparks or smoke coming out of an electrical fixture it is not the time to start looking for your electrical panel.
Do you know where your electrical panel or panels are? Yes, many homes have more than one electrical panel. Are the breakers inside the panels labeled?
If it is an emergency, just turn off the main breaker. Most of the time it is not an emergency, but a service issue when you need to turn off a breaker. Indiscriminately turning off breakers may cause you to have to reset your clocks or create issues if you do not turn off your computer first.