import java.awt.GraphicsEnvironment;
...
// true if missing keyboard, mouse or screen.
// false if full keyboard, mouse and GUI screen support available.
boolean barebones = GraphicsEnvironment.isHeadless();