A Senate inquiry is examining the impact 600 bank closures in regional communities have had since 2017.