code: public String getEngineEdition() {
          try {
              if (getConnection() instanceof JdbcConnection) {
                  String sql = "SELECT CASE ServerProperty('EngineEdition')\n" +
                      "         WHEN 1 THEN 'Personal'\n" +
                      "         WHEN 2 THEN 'Standard'\n" +
                      "         WHEN 3 THEN 'Enterprise'\n" +
                      "         WHEN 4 THEN 'Express'\n" +
                      "         WHEN 5 THEN 'Azure'\n" +
                      "         ELSE 'Unknown'\n" +
                      "       END";
                  return ExecutorService.getInstance().getExecutor(this)
                      .queryForObject(new RawSqlStatement(sql), String.class);
              }
          } catch (DatabaseException e) {
              Scope.getCurrentScope().getLog(getClass()).warning(LogType.LOG, "Could not determine engine edition", e);
          }
          return "Unknown";
      }
docs: Determines the capabilities ("Edition") of the SQL Server database. Possible values are currently
  "Personal", "Standard", "Enterprise" (Developer Edition is also reported as Enterprise), "Express" or "Azure".
  
  @return one of the strings above