Visually distinguishing them is difficult and unreliable. While there *might* be subtle differences in the intake manifold or other accessories, these can vary due to trim level, options, and even manufacturing variations within the same engine size. Relying on visual inspection alone is risky and likely to lead to a wrong conclusion.
In short: The engine block casting number is the only definitive way to be sure.