A way to get system unique id

Hi there,
Is it possible to get a system unique id such as MachineGuid in windows or IOPlatformUUID in OSX?

Thanks