Looks like the ldap attribute trustAttribute
in the ldap object objectclass=trusteddomain
has the trust relationship. The link http://msdn.microsoft.com/en-us/library/cc223779 details what each bit means.
The following link may also be useful http://gallery.technet.microsoft.com/scriptcenter/Get-Active-Directory-2a9e15d2