You can get the list of available modules in Magento 2. You can manually check your all the module list from app/etc/config.php
You can get all the Active module list using Magento\Framework\Module\FullModuleList class.
FullModuleList.php class used for getting all the module in Magento 2 whether its enable or disabled.

Thanks for the useful information Rakesh.