Roth spots are detected through an eye examination, often using tools like an ophthalmoscope or fundus photography, which allows a detailed view of the retina and its blood vessels.