Retrieve section slug by handle
{% set newsSlug = craft.entries().section('news').select('elements_sites.slug').one().slug ?? null %}

news - handle your section news;
select('elements_sites.slug') - for get only slug your section;
?? null - in case if there is no such section;