The Entry/Exit control system is only between US and Canada at this time ( as publicized ) but will expand to other countries. Unless they want to scrutinize the traveler with flight info etc, it cannot be based on stamps so unless they check thoroughly, there is no way to tell unless asked ( at which point it will be lying ) and immigration/custom form don't have a column asking "If ever overstayed"