From what I understand, the homography matrix only accounts for rotation and translation, but maybe I am wrong about this.
Yes, the first two elements on diagonal of the homography matrix are for the scale in x and y axis respectively. Have a look at the answers of this question.