There are a variety of reports available to show you this information:
Click HR.
Select User Defined Queries.
Scroll up and down the list for the most applicable query.
The Company Current (all) Employee Export by FY + Terminated Employees query is a good resource.
Click Save to export to Excel.