How should I modify this drain pipe
You can custom make a shower bed to utilize your drain location Or possibly find one Off the shelf, you can a standard drain or a trough drain. i have seen drains in many locations of all types and have never heard of a code specific to its location. 

There is a code concerning the distance of the drain from the vent, so if you do move the drain you will need to know that code distance and where your vent is. 


  ( I AM NOT AN EXPERT, I JUST PLAY ONE ON STACK EXCHANGE ) 


If you don't have access to underneath the floor you will not be able to move it unless you plan on putting in step up shower bed. It appears you can cut the flooring within the wood framing to access the connection of the brass to he main drain. You will need to see how the brass is attached to the trap in order to know how to go about disconnecting it. i can not tell what the rest of your flour is made of nor do i know the regulations of your condo. 

Let us know once you have done some exploratory surgery on your floor.