The error message: "The operating system or service pack you are using is not currently supported."
This can be safely ignored and the workaround to click OK and proceed further and epo 5.1.0 with windows 2012 R2 is supported version.
For more details check the articles as below.
Kb51569 : Supported environments for ePolicy Orchestrator on Microsoft Windows
KB79062 : ePolicy Orchestrator 5.1 Known Issues
From the KB79062 epo 5.1 known issues,
Issue: When installing ePO on Windows 2012 R2 and Windows 8.1 operating systems, the following incorrect message displays:
"The operating system or service pack you are using is not currently supported."
Workaround: Click OK and continue the installation normally.