When we have a set, is it correct to refer to another set as 'itself' when this other set is merely equal to it?
More formally, I am asking whether or not two sets with the same elements can be considered to be two separate mathematical objects.
I am a programmer so I am used to the "same object" being a distinct notion to "the object to which this object is equal". Therefore, this has led me to consider whether or not this concept is true within mathematics.
To understand the foundational axioms upon which mathematics has been built, you will need to study a course on Set Theory. The axiom that answers your question is known as Extensionality:
This means that two sets are equal if and only if they have the exact same elements. The order of the elements of sets does not matter in mathematics.
If the sets $A,B$ are equal, then $A$ are $B$ are just two names for the same thing. These are not and cannot be distinct mathematical objects, otherwise this would violate the Axiom of Extensionality.
The above is the short answer to your question. Here is the slightly deeper answer.
If you want to know why this is true, then things get a bit philosophical. This is an Axiom - which means that it is something that mathematicians say is true. You don't necessarily have to accept the axioms and many mathematicians work with different axioms (for example, you may have heard that the Axiom of Choice is somewhat controversial). The underlying assumption here is that we are working in $ZFC$ Set Theory (the most common axiomatic system used by mathematicians today). The Axiom of Extensionality is one the axioms of $ZFC$, but it's perfectly reasonable to explore other systems of axioms which may not necessarily accept Extensionality.
For example, you may be interested in this MathOverflow post which discusses some of the research that has been done on Set Theory without Extensionality.
To wrap this answer up, before things get too far into philosophy and away from mathematics, the axioms of set theory essentially tell us what sets are and what sets aren't. There isn't a clear, precise definition of a set. They are just objects governed by the axioms of set theory. Therefore, we can change the axioms (which will change what constitutes a set) to suit what we are doing. Although we do need to be careful, because if you change the axioms then sometimes things that are true in one system will be untrue in another. This doesn't mean that one is right and one is wrong, it just means that you need to be weary of which results depend on which axioms.