You'd need to write some code to do it, but it wouldn't be hard.
To get a list of all the menuitems on your Joomla site you can do:
$app = Factory::getApplication();
$sitemenu = $app->getMenu();
$menuitems = $sitemenu->getItems(array(), array());
Then you can cycle through the $menuitems examining the query property which is an ...