What can I do, medically speaking, to help my boyfriend maintain an erection?

See a doctor. There are many causes for difficulty maintaining erections. He should have a general medical evaluation to screen for heart disease, high blood pressure, high cholesterol and low testosterone. If everything checks out ok, the medications such as cialis, Levitra (vardenafil) and viagra can help.