How can i get my Arduino Serial Number by code? (VID / PID)
You can check your arduino VIP & PID while he is connected by going to hardware connected to your PC...
I want to know if i can retreive it by code...
The FTDI chip has a serial number. The Arduino does not. While the Arduino is running, it is not talking to the FTDI chip.
Isn't this a Linux/OSX/Windoze question, rather than an Arduino question?
I would start here:
They even have a tool to set the serial number of the FTDI chip.