Thank you for your suggestion. This feature has already been implemented on the website so please use the following link to check availability of names:
https://www.extremecraft.net/players/ The convenience of the /namecheck command (which is functionally the same as what you suggested) on discord is currently reserved for Nitro Boosters so consider boosting if you want to use it!