On the electrical/protocol side, the two may or may not be identical. I believe eSATA devices are required to support several features that are optional for internal SATA devices, including hot-pluggability and support for port multipliers. People who extend a motherboard SATA port to an external connector often find out about these differences the hard way.