I'm developing an app for Windows 8, but I want to know if there's a way to know the version of Windows 8, because if it's Windows 8 RT I want the app only shows 2 options, for example, but if the app is running on Windows 8 Pro I want the app has the total functions.
I know when you create the packages in Visual Studio you can select the type or architecture you want for the app, but I don't know if with C# or JavaScript in the case of an app with HTML5 you can detect the architecture to know the version of Windows 8.