Hi,
I found this nice site
Stack and reach calculator which allows you to enter various calculations (except seat tube length ironically) and then it visualizes the two bikes and calculates stack and reach.
Attached are the details. It seems the end result is that the 54cm bike has 2cm greater stack. Reach is the same!