How to check JS bundling enable programmatically in Magento 2?

You can Bundling Javascript from the Magento admin panel in Magento 2.

To Bundling JavaScript files in Magento 2 via admin panel,
Go To Admin panel,
Click Stores -> Settings -> Configuration from the left sidebar.
Click on Advanced from the left sidebar, Select Developer Tab,
Open the JavaScript Settings section,
Enable JavaScript Bundling to Yes,
Click on Save Config.

You can check it programmatically using PHP Class,

<?php
namespace Jesadiya\Bundling\Model;

use Magento\Framework\View\Asset\ConfigInterface;

class JsBundle
{
    /**
     * @var Minification
     */
    private $minification;

    public function __construct(
        ConfigInterface $bundleConfig
    ) {
        $this->bundleConfig = $bundleConfig;
    }

    /**
     * Check that js Bundling is enabled
     *
     * @return boolean
     */
    public function isJsBundlingEnabled()
    {
        return $this->bundleConfig->isBundlingJsFiles();;
    }
}

Use Interface in the __construct(), Magento\Framework\View\Asset\ConfigInterface to check bundling js enable or not.

echo $jsBundling = $this->isJsBundlingEnabled();

Output:
Boolean