_HWPROFILE returns the name of the current Windows hardware profile.

 

Example:

 

echo %_hwprofile

Undocked Profile