protected $_scopeConfig;
public function __construct(
\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig) {
$this->_scopeConfig = $scopeConfig;
}
$storeScope = \Magento\Store\Model\ScopeInterface::SCOPE_STORES;
$this->_scopeConfig->getValue("section_id/group_id/field_id", $storeScope);
section_id, group_id, field_id values you can find fromin etc/adminhtml/system.xml file from youpath in your custom / (default vendor) Module