The EU treaty has a clause that calls for assistance for part of the members (who are not neutral) but there's no military structure outside NATO.
There's also a perpatual public debate about whether EU should become a military alliance. eg https://theloop.ecpr.eu/can-the-eu-form-an-autonomous-milita...
In practical terms, in event of a invasion, only NATO has a organisation set up for coordinated response.