You should use -k instead of -n. The -k flag filters the output to show only entries that have the specified property key.
The command must be :
ioreg -c IOPlatformExpertDevice -k IOPlatformUUID