The medical specialty that is concerned with hormones and the glands that secrete them is endocrinology.