In a closed monoidal category we have $$ \text{Hom}_\mathcal{C}(Y, X \Rightarrow Z) \cong \text{Hom}_\mathcal{C}(X, Y \Rightarrow Z) $$ this can be obtained by going through $\text{Hom}_\mathcal{C}(X \otimes Y, Z)$ and using the fact that $X\otimes Y \cong Y \otimes X$.
I'm interested in a generalization of this result.
Denote $\text{Hom}^{\mathcal{D}}_\mathcal{C}(X,Y)$ to be a hom-set of morphisms in category $\mathcal{C}$ where the hom-set as an object lives in the category $\mathcal{D}$. Thus the internal hom-set $X \Rightarrow Y$ is just $\text{Hom}^{\mathcal{C}}_\mathcal{C}(X,Y)$ in this notation.
Let $\mathcal{C}, \mathcal{D}, \mathcal{E}$ are some categories. I'm interested in a result of the following type $$ \text{Hom}^{\mathcal{E}}_\mathcal{D}(X, \text{Hom}^{\mathcal{D}}_\mathcal{C}(Y,Z)) \cong \text{Hom}^?_?(Y, \text{Hom}^?_?(X,Z)) $$ What categories should be on the right hand side? What are the conditions on $\mathcal{C}, \mathcal{D}, \mathcal{E}$ such that something like this holds?
Edit: based on Thibaut Benjamin's answer to be a bit more concrete.
Right now, I'm wokring with category of sets($\mathbf{Set}$), vector spaces($\mathbf{Vec}$), category of vector spaces with polynomial maps between them($\mathbf{Pol}$) and category of vector spaces with smooth maps between them($\mathbf{Smooth}$).
Let $A$ be a set and $U$ a vector space. Then $\text{Hom}_\mathbf{Set}(A,U)$ naturally form a vector space. Thus, I would write $\text{Hom}_\mathbf{Set}^\mathbf{Vec}(A,U)$. Let $V$ is also a vector spce, then we have $$ \text{Hom}^{\mathbf{Vec}}_\mathbf{Set}(A, \text{Hom}^{\mathbf{Vec}}_\mathbf{Smooth}(U,V)) \cong \text{Hom}^\mathbf{Vec}_\mathbf{Smooth}(U, \text{Hom}^\mathbf{Vec}_\mathbf{Set}(A,V)) $$ So I'm wondering if this is an instance of a more general result.
I think a distinction needs to be made, between two notions here.
First, there is the notion of hom-set of a category, which for two objects $A,B$ associates a set $Hom(A,B)$, of morphisms from $A$ to $B$. In a more general setting, if $\mathcal{D}$ is a monoidal category, then you can also define $\mathcal{D}$-enriched categories, which are essentially the same as usual categories, except that now $Hom(A,B)$ is an object in $\mathcal{D}$. To emphasize the difference, I will say hom-object, instead of hom-set in this case.
Secondly, if you have a closed monoidal category $(\mathcal{C},\otimes)$, then $A\otimes \_$ has a right adjoint $[\_,A]$. This means that for all objects $B,C$ in $\mathcal{C}$, you get an object $[B,C]$ in $C$, which satisfies $Hom(A\otimes B,C) \simeq Hom(A,[B,C])$. This object is called the internal hom in $\mathcal{C}$.
These two things are not to be confused as they are fundamentally different. Granted in most cases of monoidal categories that we usually study, the differences is not that noticeable. This is because from a usual monoidal closed category $\mathcal{C}$, you can define a $\mathcal{C}$-enriched category with objects the same as $\mathcal{C}$, and chosing morphisms to be the internal homs. It so happens that for the category of vector spaces, the category obtained this way is much of a difference, the original hom-sets are simply the underlying spaces of the internal homs. This may (or may not, I havent thought much about it), be the case for all concrete categories.
But for a general $\mathcal{C}$ mnoidal closed, the statement does not make any sense, since the internal homs are objects in $\mathcal{C}$, and the hom-sets are sets, and they are in no way related to one another.
Now one thing which is true (https://ncatlab.org/nlab/show/closed+monoidal+category) is that the isomorphisms of hom-sets, translates to an iso on internal hom $[X\otimes Y, Z]\simeq [X,[Y,Z]]$. This indeed shows that $[X,[Y,Z]]\simeq [Y,[X,Z]]$. Thus for the $\mathcal{C}$ enriched category obtained by taking the internal homs in $\mathcal{C}$ (as the previous construction), we have indeed that $Hom(X,Hom(Y,Z)) \simeq Hom(Y,Hom(X,Z))$.
But now I really can't see how you want to generalize that in the case of general enriched categories. First, you need $\mathcal{E}$ to be monoidal, $\mathcal{D}$ to be monoidal and $\mathcal{E}$-enriched, and $\mathcal{C}$ to be $\mathcal{D}$-enriched. But then I don't see any construction that can replace the internalization, and I can't even formulate an analoguous statement. I think self-enrichment is very crucial here.