Are you asking to know whether your computer can run Windows 10 or not? Or whether the software you're writing is running on a Windows 10 OS?
For the former you can refer to the WIndows 10 system requirements posted by Microsoft. If you try to install Windows on an unsupported machine it'll fail to run of course. Microsoft used to have an upgrade wizard you could download and run on a machine to determine if it could run before trying to install it.
If you want to determine whether software you have written is running on Windows 10 then you can check the OS version as discussed here. However it is generally not recommended that you do this. Instead it is recommended that you query the OS for the feature you need. But that requires more work.