Here is an SCCM report, that takes computer name and shows all collections that computer belongs to
Query used in this report:
select
v_Collection B
v_R_System C
where
and