Bom Pessoal depois de augum tempinho sem postar tutoriais, neste aqui vou encinar a vocês a pegar o nome do usuario logado no windows.

Declare a Função:

Código PHP:
Function GetNetUserNamestring;
Var
NetUserNameLengthDWord;
Begin
NetUserNameLength
:=50;
SetLength(ResultNetUserNameLength);
GetUserName(pChar(Result),NetUserNameLength);
SetLength(ResultStrLen(pChar(Result)));
End
Crie um Label.

Na aba Events do Form, Procure por OnActive e Clique duas vezes adcionando o code:

Código PHP:
Label1.Caption:=GetNetUserName
Creditos:

FusioN
Jean Posser