One way is to do it in CodeBehind on the page load and check via session (or whatever) that the user is already logged in.
if(alreadyLoggedIn)
{
Menu1.Items[2].Text = "Logout";
Menu1.Items[2].NavigateUrl = "~/UserLogOut.aspx";
}
Another alternative would be do it via the client side using jQuery.