My company is tracking various security settings of our users. For most of them we're able to use a simple terminal command, but for the Require password after sleep" setting I couldn't find anything.
Other answers suggest checking
~/Library/Preferences/ByHost/com.apple.screensaver.*.plist, but that plist doesn't contain anything that looks like a time interval.