I know that it is possible for a website to detect a user's screen dimensions in pixels, but is there a way to detect the physical size of a user's monitor (in inches)?
Not reliably.
Even monitors that believe to know their DPI - which isn't many - are often incorrect.