If your Beoplay P6 is added to the Bang & Olufsen app, you can find the 8-digit serial number under "Product information -> Product settings -> About."
The Bang & Olufsen app is available for download here
Alternatively, the serial number can be found on on a sticker at the bottom of the Beoplay P6 or on the packaging.