SCCM stores AD organizational unit in the DB exposing it to v_RA_System_SystemOUName view. The problem is, that for each objects you'll find direct and all parent OUs of the computer. I've created a view, that shows direct OU only. Here it is, just change SMS_ENT to your SCCM DB name.