Use:
to check processes that are running. Checkout
for top options.
In any case if a system has a desktop manager (KDE/gnome) running then it'll have process 0 (init), all services that you have enabled (web server, samba, sshd etc), X server, desktop environment (along with its children such as panel, menus etc) running.