Medicine

A 25-year-old lady has put on weight and has oligomenorrhea followed by amenorrhea for 8 months. The blood pressure is 160/100 mm of Hg. Which of the following is the most appropriate investigation?