In Texis version 6 and later, <apiinfo $setting> can be called to get the current value of $setting. <apiinfo "settings"> will return a list of all available settings.
Note that there are some SQL properties (SQL "set property='value'") that might affect searches but are not APICP settings, e.g. addexp for index expressions. There is currently no general way to obtain such SQL property value.