がどこにあるか

where ... is

→ が
phrase Rare #27,181
where ... is Used to form an indirect question about where something is. The thing before が is the subject.
JA: 鍵がどこにあるか知っていますか?
EN: Do you know where the key is?

僕の靴がどこにあるかわからない。

I don't know where my shoes are.

トムの隠れ家がどこにあるか教えて。

Tell me where Tom's hideout is.

トムの靴下がどこにあるか知らない。

I don't know where Tom's socks are.

東京タワーがどこにあるか知っていますか。

Do you know where Tokyo Tower is?

ある外国人が私に駅がどこにあるかと聞いた。

A foreigner asked me where the station was.

そして我々はみんな――会社の癌がどこにあるか嫌というほど知ってる

And we all know all too well where the cancer in the company lies.

— High and Low (1963)

夜間営業の薬局がどこにあるかをご存知ですか?

Do you know where I can find a pharmacy that's open at night?