They don't match up exactly. If you are willing to tinker with different shock shaft lengths (including from different brands of shocks), shock ends, and limiters, you could get them to match close enough to be workable.
I would never replace Losi shocks with AE shocks. I think Losi shocks are easier to build properly and work at least as well, if not better.