Yes, we can get the active window name:

Var = Window("ForeGround:=True").GetROProperty("Title")
Msgbox Var