you can use OS functions to get some system information
This function can help you get system & platform type:
local platform = plugin.os.current_platform()