Nice find! I'd secure that to the wall ASAP! Looks like PVC piping you have for plumbing because it's white, It might be ABS thats just colored white. Either way it can be brittle and bend and break under the pressure of a heavy sink.
(I know from experience LOL)