How to detect what platform the player is playing Roblox on?

How do you check for the platform the player is using (e.g, console, desktop, etc.)? Is there an enum for it?