Web Audio API | AudioContext outputLatency property
The AudioContext interface has a outputLatency property which provides an approximation of the latency in output of the current audio context. This time is between the browser requesting to the host system to start a buffer and the time at which the first sample in the buffer is actually processed by the audio output device.
var latency = audioCtx.outputLatency;
A double value is returned in seconds