Is this 2D? If so, you should be able to do something like this for position:
target = thisComp.layer("target");
target.toComp(target.anchorPoint);
and like this for rotation:
target = thisComp.layer("target");
v = target.toCompVec([1,0,0]);
radiansToDegrees(Math.atan2(v[1],v[0]))
Dan