The answer is yes, but it depends on whether they have a contract. Countries can routinely exchange information on applicants who request visas or authorize travel to other countries by joining an immigration information-sharing agreement.
If the ID matches the ID from the prior application, immigration information may be provided. Whether the individual has previously been denied a visa or has been expelled from another nation.
Unless your passport bears a visa denial stamp, no one will know that another nation has denied your visa. except in Schengen nations, where information may be obtained using the same technique.