Use the getAttr command. For example:
getAttr ball.scalePivot; // Result: 7.099792 7.984488 -4.93999 // getAttr ball.rotatePivot; // Result: 7.099792 7.984488 -4.93999 //