There are many command line switches in Chrome, for example: http://peter.sh/experiments/chromium-command-line-switches/
Is there an option to check by javascript wh
No, there is not. And there shouldn't be any need for it. If a flag adds any functionality, you can check if that functionality exists. Any other flag is completely irrelevant to a webpage.