Options[$FrontEnd, AutoOpenNotebooks] or CurrentValue[$FrontEnd, AutoOpenNotebooks]