love.window.isMaximized
Gets whether the Window is currently maximized.

The window can be maximized if it is not fullscreen and is resizable, and either the user has pressed the window's Maximize button or love.window.maximize has been called.
maximized = love.window.isMaximized()
maximized boolean True if the window is currently maximized in windowed mode, false otherwise.