I have used BGInfo with windows systems for years. The following is a very good article from Mike Terrill that includes vbs scripts for determining the BIOS Mode and Secure Boot state.
via Adding Windows 10 Version, BIOS Mode and Secure Boot State to BGInfo