A 45-year-old patient was admitted to the hospital in a coma caused by severe hyperglycemia and was treated with insulin and fluids. He has been placed on long- and short-acting insulin injected daily to control his blood glucose levels. What test could be ordered at this point to determine if the patient has type 1 versus type 2 diabetes?