This one will do it

$sysinfo = CreateObject("ADSystemInfo")
$oUser = GetObject("LDAP://" + $sysinfo.UserName)
$dep = ($oUser.Officelocations)