It's a piezoelectric sounder fixed to the main board, operated by a digital output from the processor / SOC.
In principle, you could wire an external device to it's connections in it's place.
My NVRs don't beep, except once on startup.
What have you configured that beeps?