Board Info : BN,VID,PID,SN

Hi,

Thanks for the opportunity of first post.

I have help google translate.

My IDE version 1.8.2 Linux 64

How to obtain via code, the information obtained in

Menu->tools->Get board info

Only example:

BN: Arduino/Genuino Uno
VID: 3333
PID: 2222
SN: 111111111111111111111

Some example code that returns the values.

BN,VID,PID,SN

Thank you,

Walber Sales