First Principles Determination of Magnetic Anisotropy and Magnetostriction in Transition Metal Alloys