JavaScript
window.devicePixelRatio
screen.deviceXDPI
screen.logicalXDPI
device pixel ratio
Media Query