On many modern Dahua devices, clicking "Forgot Password" on the login screen will display the serial number along with a QR code.