bin/magento deploy:mode:show
http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-mode.html#config-mode-show
See also:
developer
production
Another way:
grep -E "MAGE_MODE" app/etc/env.php