dmidecode is an useful application on Linux to obtain intimate details about all the hardware components in your computer. This is the information from the DMI or System Management BIOS (SMBIOS).
$ sudo apt install dmidecode
$ sudo dmidecode
$ sudo dmidecode --type memory $ sudo dmidecode --type baseboard
memory type tells me the actual DIMMs that are filled and with how much RAM. The
baseboard type provides me the motherboard brand, model and version.
Tried with: Ubuntu 18.04