Is there a code python to find the path of packages location for differnt version civil 3d

Is there a code python to find the path of packages location for differnt version civil 3d