Get current menu ID:

$app = JFactory::getApplication();
$menu = $app->getMenu()->getActive()->id;
echo $menu;